<template>
	<div id="app"><router-view /></div>
</template>
<script>
export default {
	data() {
		return {
			loginForm: {
				phone: '13016448730',
				password: '123456'
			},
			loading: false
		};
	},
	created() {
		// this.set();
		// this.changeToken(this.key)
	},
	methods: {
		set() {
			// let isDone: boolean = false;
			this.$store
				.dispatch('getToken/login', this.loginForm)
				.then(() => {
					// this.$router.push({ path: this.redirect || '/', query: this.otherQuery });
					this.loading = false;
				})
				.catch(() => {
					this.loading = false;
				});
		}
		// ...mapActions('getToken', ['changeToken'])
	}
};
</script>

<style></style>
